<template>
  <div id="app">
    <van-loading v-show="LOADING" type="spinner" color="black"/>
    <router-view />
    <tab-bar></tab-bar>
  </div>
</template>
<script>
import TabBar from "@/components/tabbar/TabBar";

import { mapState } from "vuex";
export default {
  created() {
    var userInfo = {
      openId: "1231781898",

      nickName: "赵六",

      avatarUrl:
        "https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIbWFEIJj8IpGeHM7dGic1aTFZALjWcMm9ltWfFiaQfVRYticWBfgGfzXWMt2EkJWiaicPtftHAlWxUibxQ/132",
    };

    var openId = userInfo.openId;

    localStorage.setItem("userInfo", JSON.stringify(userInfo));

    localStorage.setItem("openId", openId);
  },
  mounted() {},
  computed: {
    ...mapState(["LOADING"]),
  },
  components: {
    TabBar,
  },
};
</script>

<style>
* {
  margin: 0;
  padding: 0;
}
</style>




